
/**
 * @ProjectName: 
 * @Copyright: 2014 lisheng  All Right Reserved.
 * @address: toughheart@163.com
 * @date: 2015年10月18日 下午7:18:55
 * @Description: 本内容未经本人允许禁止使用、转发.
 */
 
package com.ls.fw.web.file.constant;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.LinkedHashMap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ls.fw.commons.config.utils.PropertyUtil;


/**
 * 
 * @author lisheng
 * @date 2015年10月18日 下午7:18:55
 * @version V1.0 
 */
public class Global {
 
	public static final String baseDir = "fw.file.baseDir";
	public static final  String BASEURL = "fw.file.baseUrl";
	public static final String isAbsolutePath = "fw.file.isAbsolutePath";
	
	/**
	 * Regular expression used against invalid characters in file name.
	 */
	public static final String INVALID_FILE_NAME_REGEX = "\\p{Cntrl}|[/\\:\\*\\?\"\\<\\>\\|]";
	/**
	 * Regular expression used against invalid characters in path.
	 */
	public static final String INVALID_PATH_REGEX = "(/\\.|\\p{Cntrl}|//|\\\\|[:*?<>\"\\|])";
	public static final String URL_REGEX = "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";
	public static final String CKFINDER_CHARS = "123456789ABCDEFGHJKLMNPQRSTUVWXYZ";
	public static final String DEFAULT_LANG_CODE = "en";
	public static final String BASE_DIR_PLACEHOLDER = "%BASE_DIR%";
	public static final String BASE_URL_PLACEHOLDER = "%BASE_URL%";

	
	//文件临时路径
	public static final  String tempdir = "fw.file.tempdir";
	//最大文件大小
	public static final  String maxFileSize = "fw.file.maxFileSize";
    //最大内存大小
	public static final  String maxMemSize = "fw.file.maxMemSize";
    //允许上传的类型
	public static final  String allowType = "fw.file.allowType";
    //不允许上传的类型
	public static final  String denyType = "fw.file.denyType";

	public static final  String maxSize = "fw.file.maxSize";
	
	/**
	 * 是否加密
	 */
	public static final  String encrypt = "fw.file.encrypt";
	
	 
}
